//
//  ParkingView.h
//  CarLife
//
//  Created by yu on 2017/11/6.
//  Copyright © 2017年 jpas. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ParkingAnnotation.h"
#import <AMapNaviKit/AMapNaviKit.h>

typedef void(^HandleBlock)(NSInteger index);

@interface NearSelectView : UIView

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *subTitleLabel;
@property (nonatomic, copy) HandleBlock handleBlock;

- (void)showParkingView:(BOOL)show;
- (void)updateInfoView:(ParkingAnnotation *)info;

@end



/**************************************/

@protocol SelectedTableViewCellDelegate;

typedef void(^MoveDownBlock)(void);

@interface ParkingListView : UIView

@property (nonatomic, strong) UIButton *spreadBtn;
@property (nonatomic, strong) UITableView *tableView;
@property (nonatomic, strong) NSMutableArray *pois;
@property (nonatomic, copy  ) MoveDownBlock moveBlock;
@property (nonatomic, copy  ) MoveDownBlock showMoreBlock;
@property (nonatomic, weak  ) id<SelectedTableViewCellDelegate> delegate;

- (void)showParkingListView:(BOOL)show differ:(CGFloat)differ;

@end

@protocol SelectedTableViewCellDelegate <NSObject>

- (void)selectedTableViewCellAction:(ParkingAnnotation *)annotation;

@end

